package com.desksoft.ecommerce.entity.mall.dto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShopbagExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopbagExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andClientcodeIsNull() {
            addCriterion("ClientCode is null");
            return (Criteria) this;
        }

        public Criteria andClientcodeIsNotNull() {
            addCriterion("ClientCode is not null");
            return (Criteria) this;
        }

        public Criteria andClientcodeEqualTo(String value) {
            addCriterion("ClientCode =", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeNotEqualTo(String value) {
            addCriterion("ClientCode <>", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeGreaterThan(String value) {
            addCriterion("ClientCode >", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeGreaterThanOrEqualTo(String value) {
            addCriterion("ClientCode >=", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeLessThan(String value) {
            addCriterion("ClientCode <", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeLessThanOrEqualTo(String value) {
            addCriterion("ClientCode <=", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeLike(String value) {
            addCriterion("ClientCode like", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeNotLike(String value) {
            addCriterion("ClientCode not like", value, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeIn(List<String> values) {
            addCriterion("ClientCode in", values, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeNotIn(List<String> values) {
            addCriterion("ClientCode not in", values, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeBetween(String value1, String value2) {
            addCriterion("ClientCode between", value1, value2, "clientcode");
            return (Criteria) this;
        }

        public Criteria andClientcodeNotBetween(String value1, String value2) {
            addCriterion("ClientCode not between", value1, value2, "clientcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeIsNull() {
            addCriterion("ItemCode is null");
            return (Criteria) this;
        }

        public Criteria andItemcodeIsNotNull() {
            addCriterion("ItemCode is not null");
            return (Criteria) this;
        }

        public Criteria andItemcodeEqualTo(String value) {
            addCriterion("ItemCode =", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeNotEqualTo(String value) {
            addCriterion("ItemCode <>", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeGreaterThan(String value) {
            addCriterion("ItemCode >", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeGreaterThanOrEqualTo(String value) {
            addCriterion("ItemCode >=", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeLessThan(String value) {
            addCriterion("ItemCode <", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeLessThanOrEqualTo(String value) {
            addCriterion("ItemCode <=", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeLike(String value) {
            addCriterion("ItemCode like", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeNotLike(String value) {
            addCriterion("ItemCode not like", value, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeIn(List<String> values) {
            addCriterion("ItemCode in", values, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeNotIn(List<String> values) {
            addCriterion("ItemCode not in", values, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeBetween(String value1, String value2) {
            addCriterion("ItemCode between", value1, value2, "itemcode");
            return (Criteria) this;
        }

        public Criteria andItemcodeNotBetween(String value1, String value2) {
            addCriterion("ItemCode not between", value1, value2, "itemcode");
            return (Criteria) this;
        }

        public Criteria andQtyIsNull() {
            addCriterion("Qty is null");
            return (Criteria) this;
        }

        public Criteria andQtyIsNotNull() {
            addCriterion("Qty is not null");
            return (Criteria) this;
        }

        public Criteria andQtyEqualTo(BigDecimal value) {
            addCriterion("Qty =", value, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyNotEqualTo(BigDecimal value) {
            addCriterion("Qty <>", value, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyGreaterThan(BigDecimal value) {
            addCriterion("Qty >", value, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("Qty >=", value, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyLessThan(BigDecimal value) {
            addCriterion("Qty <", value, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("Qty <=", value, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyIn(List<BigDecimal> values) {
            addCriterion("Qty in", values, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyNotIn(List<BigDecimal> values) {
            addCriterion("Qty not in", values, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Qty between", value1, value2, "qty");
            return (Criteria) this;
        }

        public Criteria andQtyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("Qty not between", value1, value2, "qty");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("Status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("Status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("Status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("Status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("Status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("Status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("Status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("Status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("Status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("Status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("Status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("Status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("Status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("Status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andAdddateIsNull() {
            addCriterion("AddDate is null");
            return (Criteria) this;
        }

        public Criteria andAdddateIsNotNull() {
            addCriterion("AddDate is not null");
            return (Criteria) this;
        }

        public Criteria andAdddateEqualTo(Date value) {
            addCriterion("AddDate =", value, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateNotEqualTo(Date value) {
            addCriterion("AddDate <>", value, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateGreaterThan(Date value) {
            addCriterion("AddDate >", value, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateGreaterThanOrEqualTo(Date value) {
            addCriterion("AddDate >=", value, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateLessThan(Date value) {
            addCriterion("AddDate <", value, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateLessThanOrEqualTo(Date value) {
            addCriterion("AddDate <=", value, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateIn(List<Date> values) {
            addCriterion("AddDate in", values, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateNotIn(List<Date> values) {
            addCriterion("AddDate not in", values, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateBetween(Date value1, Date value2) {
            addCriterion("AddDate between", value1, value2, "adddate");
            return (Criteria) this;
        }

        public Criteria andAdddateNotBetween(Date value1, Date value2) {
            addCriterion("AddDate not between", value1, value2, "adddate");
            return (Criteria) this;
        }

        public Criteria andSessionidIsNull() {
            addCriterion("sessionid is null");
            return (Criteria) this;
        }

        public Criteria andSessionidIsNotNull() {
            addCriterion("sessionid is not null");
            return (Criteria) this;
        }

        public Criteria andSessionidEqualTo(String value) {
            addCriterion("sessionid =", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotEqualTo(String value) {
            addCriterion("sessionid <>", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidGreaterThan(String value) {
            addCriterion("sessionid >", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidGreaterThanOrEqualTo(String value) {
            addCriterion("sessionid >=", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidLessThan(String value) {
            addCriterion("sessionid <", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidLessThanOrEqualTo(String value) {
            addCriterion("sessionid <=", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidLike(String value) {
            addCriterion("sessionid like", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotLike(String value) {
            addCriterion("sessionid not like", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidIn(List<String> values) {
            addCriterion("sessionid in", values, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotIn(List<String> values) {
            addCriterion("sessionid not in", values, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidBetween(String value1, String value2) {
            addCriterion("sessionid between", value1, value2, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotBetween(String value1, String value2) {
            addCriterion("sessionid not between", value1, value2, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSalepriceIsNull() {
            addCriterion("SalePrice is null");
            return (Criteria) this;
        }

        public Criteria andSalepriceIsNotNull() {
            addCriterion("SalePrice is not null");
            return (Criteria) this;
        }

        public Criteria andSalepriceEqualTo(BigDecimal value) {
            addCriterion("SalePrice =", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceNotEqualTo(BigDecimal value) {
            addCriterion("SalePrice <>", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceGreaterThan(BigDecimal value) {
            addCriterion("SalePrice >", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SalePrice >=", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceLessThan(BigDecimal value) {
            addCriterion("SalePrice <", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SalePrice <=", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceIn(List<BigDecimal> values) {
            addCriterion("SalePrice in", values, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceNotIn(List<BigDecimal> values) {
            addCriterion("SalePrice not in", values, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SalePrice between", value1, value2, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SalePrice not between", value1, value2, "saleprice");
            return (Criteria) this;
        }

        public Criteria andDiscountamtIsNull() {
            addCriterion("DiscountAmt is null");
            return (Criteria) this;
        }

        public Criteria andDiscountamtIsNotNull() {
            addCriterion("DiscountAmt is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountamtEqualTo(BigDecimal value) {
            addCriterion("DiscountAmt =", value, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtNotEqualTo(BigDecimal value) {
            addCriterion("DiscountAmt <>", value, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtGreaterThan(BigDecimal value) {
            addCriterion("DiscountAmt >", value, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("DiscountAmt >=", value, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtLessThan(BigDecimal value) {
            addCriterion("DiscountAmt <", value, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtLessThanOrEqualTo(BigDecimal value) {
            addCriterion("DiscountAmt <=", value, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtIn(List<BigDecimal> values) {
            addCriterion("DiscountAmt in", values, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtNotIn(List<BigDecimal> values) {
            addCriterion("DiscountAmt not in", values, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DiscountAmt between", value1, value2, "discountamt");
            return (Criteria) this;
        }

        public Criteria andDiscountamtNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("DiscountAmt not between", value1, value2, "discountamt");
            return (Criteria) this;
        }

        public Criteria andSaleprice0IsNull() {
            addCriterion("SalePrice0 is null");
            return (Criteria) this;
        }

        public Criteria andSaleprice0IsNotNull() {
            addCriterion("SalePrice0 is not null");
            return (Criteria) this;
        }

        public Criteria andSaleprice0EqualTo(BigDecimal value) {
            addCriterion("SalePrice0 =", value, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0NotEqualTo(BigDecimal value) {
            addCriterion("SalePrice0 <>", value, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0GreaterThan(BigDecimal value) {
            addCriterion("SalePrice0 >", value, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0GreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SalePrice0 >=", value, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0LessThan(BigDecimal value) {
            addCriterion("SalePrice0 <", value, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0LessThanOrEqualTo(BigDecimal value) {
            addCriterion("SalePrice0 <=", value, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0In(List<BigDecimal> values) {
            addCriterion("SalePrice0 in", values, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0NotIn(List<BigDecimal> values) {
            addCriterion("SalePrice0 not in", values, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0Between(BigDecimal value1, BigDecimal value2) {
            addCriterion("SalePrice0 between", value1, value2, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleprice0NotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SalePrice0 not between", value1, value2, "saleprice0");
            return (Criteria) this;
        }

        public Criteria andSaleqtyIsNull() {
            addCriterion("SaleQty is null");
            return (Criteria) this;
        }

        public Criteria andSaleqtyIsNotNull() {
            addCriterion("SaleQty is not null");
            return (Criteria) this;
        }

        public Criteria andSaleqtyEqualTo(BigDecimal value) {
            addCriterion("SaleQty =", value, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyNotEqualTo(BigDecimal value) {
            addCriterion("SaleQty <>", value, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyGreaterThan(BigDecimal value) {
            addCriterion("SaleQty >", value, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SaleQty >=", value, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyLessThan(BigDecimal value) {
            addCriterion("SaleQty <", value, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SaleQty <=", value, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyIn(List<BigDecimal> values) {
            addCriterion("SaleQty in", values, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyNotIn(List<BigDecimal> values) {
            addCriterion("SaleQty not in", values, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SaleQty between", value1, value2, "saleqty");
            return (Criteria) this;
        }

        public Criteria andSaleqtyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SaleQty not between", value1, value2, "saleqty");
            return (Criteria) this;
        }

        public Criteria andPromflagIsNull() {
            addCriterion("PromFlag is null");
            return (Criteria) this;
        }

        public Criteria andPromflagIsNotNull() {
            addCriterion("PromFlag is not null");
            return (Criteria) this;
        }

        public Criteria andPromflagEqualTo(String value) {
            addCriterion("PromFlag =", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagNotEqualTo(String value) {
            addCriterion("PromFlag <>", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagGreaterThan(String value) {
            addCriterion("PromFlag >", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagGreaterThanOrEqualTo(String value) {
            addCriterion("PromFlag >=", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagLessThan(String value) {
            addCriterion("PromFlag <", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagLessThanOrEqualTo(String value) {
            addCriterion("PromFlag <=", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagLike(String value) {
            addCriterion("PromFlag like", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagNotLike(String value) {
            addCriterion("PromFlag not like", value, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagIn(List<String> values) {
            addCriterion("PromFlag in", values, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagNotIn(List<String> values) {
            addCriterion("PromFlag not in", values, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagBetween(String value1, String value2) {
            addCriterion("PromFlag between", value1, value2, "promflag");
            return (Criteria) this;
        }

        public Criteria andPromflagNotBetween(String value1, String value2) {
            addCriterion("PromFlag not between", value1, value2, "promflag");
            return (Criteria) this;
        }

        public Criteria andShoptypeIsNull() {
            addCriterion("ShopType is null");
            return (Criteria) this;
        }

        public Criteria andShoptypeIsNotNull() {
            addCriterion("ShopType is not null");
            return (Criteria) this;
        }

        public Criteria andShoptypeEqualTo(Integer value) {
            addCriterion("ShopType =", value, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeNotEqualTo(Integer value) {
            addCriterion("ShopType <>", value, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeGreaterThan(Integer value) {
            addCriterion("ShopType >", value, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ShopType >=", value, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeLessThan(Integer value) {
            addCriterion("ShopType <", value, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeLessThanOrEqualTo(Integer value) {
            addCriterion("ShopType <=", value, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeIn(List<Integer> values) {
            addCriterion("ShopType in", values, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeNotIn(List<Integer> values) {
            addCriterion("ShopType not in", values, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeBetween(Integer value1, Integer value2) {
            addCriterion("ShopType between", value1, value2, "shoptype");
            return (Criteria) this;
        }

        public Criteria andShoptypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ShopType not between", value1, value2, "shoptype");
            return (Criteria) this;
        }

        public Criteria andR00201IsNull() {
            addCriterion("R00201 is null");
            return (Criteria) this;
        }

        public Criteria andR00201IsNotNull() {
            addCriterion("R00201 is not null");
            return (Criteria) this;
        }

        public Criteria andR00201EqualTo(String value) {
            addCriterion("R00201 =", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201NotEqualTo(String value) {
            addCriterion("R00201 <>", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201GreaterThan(String value) {
            addCriterion("R00201 >", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201GreaterThanOrEqualTo(String value) {
            addCriterion("R00201 >=", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201LessThan(String value) {
            addCriterion("R00201 <", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201LessThanOrEqualTo(String value) {
            addCriterion("R00201 <=", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201Like(String value) {
            addCriterion("R00201 like", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201NotLike(String value) {
            addCriterion("R00201 not like", value, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201In(List<String> values) {
            addCriterion("R00201 in", values, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201NotIn(List<String> values) {
            addCriterion("R00201 not in", values, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201Between(String value1, String value2) {
            addCriterion("R00201 between", value1, value2, "r00201");
            return (Criteria) this;
        }

        public Criteria andR00201NotBetween(String value1, String value2) {
            addCriterion("R00201 not between", value1, value2, "r00201");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}